# coding=utf-8
import os, requests, PIL
from bs4 import BeautifulSoup
from PIL import Image
from io import BytesIO

url = "http://1024.stv919.net/pw/htm_data/14/1707/698617.html"
image = "http://p.urlpic.club/imghost/upload/image/20170708/70809381934.jpg"
#
# conn=requests.session()
# rsp=conn.get(url)
# bs=BeautifulSoup(rsp.content,'html.parser')
# for i in bs.select('.tpc_content img'):
#         print i['src']

url2 = 'http://p.urlpic.club/imghost/upload/image/20170708/70809381934.jpg'
u3='http://p.urlpic.club/imghost/upload/image/20170712/71206416471.jpg'


try:
	rsq = requests.get(u3)
	print rsq.headers
	print rsq.cookies
	# f = open("c://WORKSPACE//logs//a.png", 'wb')
	# f.write(rsp.content)
	# f.close()

except requests.HTTPError, e:
	print e

print 'hello world'





















